﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataSync.Application.QuerySql
{
    /// <summary>
    /// 数据查询接口
    /// </summary>
    public class QuerySqlService : IDynamicApiController
    {
        private readonly IQuerySqlServices _querySqlServices;
        public QuerySqlService(IQuerySqlServices querySqlServices) 
        { 
            _querySqlServices = querySqlServices;
        }
        /// <summary>
        /// 客户端数据查询
        /// </summary>
        /// <param name="sql"></param>
        /// <returns></returns>
        public string GetTable(string sql) 
        {
            return _querySqlServices.GetTable(sql);

        }
    }

}
